﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class SachDTO
    {
        List<SachDTO> sach = new List<SachDTO>();
        public int Length
        {
            get { return this.sach.Count; }
        }
        public SachDTO()
        {
            this.sach = new List<SachDTO>();
        }
        public SachDTO this[int index]
        {
            get { return sach[index]; }
            set { sach[index] = value; }
        }
        private string _MaSach;

        public string MaSach
        {
            get { return _MaSach; }
            set { _MaSach = value; }
        }
        private string _TheLoai;

        public string TheLoai
        {
            get { return _TheLoai; }
            set { _TheLoai = value; }
        }
        private string _TenSach;

        public string TenSach
        {
            get { return _TenSach; }
            set { _TenSach = value; }
        }
        private string _TacGia;

        public string TacGia
        {
            get { return _TacGia; }
            set { _TacGia = value; }
        }
        private int _SoLuongTon;

        public int SoLuongTon
        {
            get { return _SoLuongTon; }
            set { _SoLuongTon = value; }
        }
        private int _DonGia;

        public int DonGia
        {
            get { return _DonGia; }
            set { _DonGia = value; }
        }
    }
    public class SachColums
    {
        public static readonly string MaSach = "MaSach";
        public static readonly string TenTheLoai = "TheLoai";
        public static readonly string TenSach = "TenSach";
        public static readonly string TacGia = "TacGia";
        public static readonly string SoLuongTon = "SoLuongTon";
        public static readonly string DonGia = "DonGia";
    }
}
